package com.coob.controller;

import com.coob.bean.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping
public class HelloController {

    @ResponseBody
    @RequestMapping("hello")
    public String hello() {
        return "hello...";
    }

    @Autowired
    private Person person;

    @ResponseBody
    @RequestMapping("/helloPerson")
    public Person helloPerson() {
        return person;
    }

    @ResponseBody
    @RequestMapping("helloGitClone")
    public String helloGitClone() {
        return "helloGitClone...";
    }

    @ResponseBody
    @RequestMapping("helloGit")
    public String helloGit() {
        return "helloGit...";
    }

}
